import request from '@/utils/request'

const baseUrl = '/api/performance-bonus'

// 保存绩效奖金申请
export function savePerformanceBonus(data) {
    return request({
        url: `${baseUrl}/save`,
        method: 'post',
        data
    })
}

// 获取绩效奖金申请列表
export function getPerformanceBonusList(params) {
    return request({
        url: `${baseUrl}/list`,
        method: 'get',
        params
    })
}

// 获取绩效奖金申请详情
export function getPerformanceBonusDetail(id) {
    return request({
        url: `${baseUrl}/${id}`,
        method: 'get'
    })
}

// 删除绩效奖金申请
export function deletePerformanceBonus(id) {
    return request({
        url: `${baseUrl}/${id}`,
        method: 'delete'
    })
} 